/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author PR
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface KstLsProCardDataH extends BasicModel<KstLsProCardDataH> {
  code?: string; // 编号
  verNum?: string; // 版本号
  kstLsProCardDataCList?: any[]; // 子表列表
}

export const kstLsProCardDataHList = (params?: KstLsProCardDataH | any) =>
  defHttp.get<KstLsProCardDataH>({ url: adminPath + '/card/kstLsProCardDataH/list', params });

export const kstLsProCardDataHListData = (params?: KstLsProCardDataH | any) =>
  defHttp.post<Page<KstLsProCardDataH>>({ url: adminPath + '/card/kstLsProCardDataH/listData', params });

export const kstLsProCardCListData = (params?: KstLsProCardDataH | any) =>
  defHttp.post<Page<KstLsProCardDataH>>({ url: adminPath + '/card/kstLsProCardDataH/kstLsProCardCListData', params });

export const kstLsProCardDataHForm = (params?: KstLsProCardDataH | any) =>
  defHttp.get<KstLsProCardDataH>({ url: adminPath + '/card/kstLsProCardDataH/form', params });

export const kstLsProCardDataHSave = (params?: any, data?: KstLsProCardDataH | any) =>
  defHttp.postJson<KstLsProCardDataH>({ url: adminPath + '/card/kstLsProCardDataH/save', params, data });

export const kstLsProCardDataHDelete = (params?: KstLsProCardDataH | any) =>
  defHttp.get<KstLsProCardDataH>({ url: adminPath + '/card/kstLsProCardDataH/delete', params });
